package cn.labbook.bluetooth.entity;

import cn.labbook.bluetooth.entity.base.BaseMySqlEntity;
import lombok.Data;

/**
 * @Author: zhangyang
 * @Date: 2023/6/2 17:40
 * @Desc: 转账记录
 */
@Data
public class TransferRecord extends BaseMySqlEntity<TransferRecord> {

    /**
     * 支付记录id
     */
    private String tenantPayId;
    /**
     * 转账金额
     */
    private Double amount;
    /**
     * 状态
     */
    private Integer status;
    /**
     * 转账失败理由
     */
    private String failReason;


    public enum Status {

        SUCCESS(1, "转账成功"),
        FAIL(2, "转账失败")

        ;
        private final int key;
        private final String value;

        Status(int key, String value) {
            this.key = key;
            this.value = value;
        }

        public int getKey() {
            return key;
        }

        public String getValue() {
            return value;
        }
    }

}
